﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GoodsInvoicing.Model.UserRole;
using GoodsInvoicing.BLL.Service;
using GoodsInvoicing.DAL.DAO.UserRole;

namespace GoodsInvoicing.BLL.ServiceImpl
{
    public class GI_PermissionService : IGI_PermissionService
    {
        private GI_PermissionDAO permissionDAO;
        public GI_PermissionDAO GI_PermissionDAO
        {
            get { return permissionDAO; }
            set { permissionDAO = value; }
        }        
        
        private GI_UserDAO userDAO;
        public GI_UserDAO GI_UserDAO        
        {
            get { return userDAO; }
            set { userDAO = value; }
        }

        public GI_Permission Get(int id)
        {
            return permissionDAO.Get(id);
        }

        public IList<GI_Permission> GetAll()
        {
            return permissionDAO.GetAll();
        }

        public int Save(GI_Permission entity)
        {
            return permissionDAO.Save(entity);
        }

        public void Update(GI_Permission entity)
        {
            permissionDAO.Update(entity);
        }

        public void Delete(GI_Permission entity)
        {
            permissionDAO.Delete(entity);
        }
    }
}
